<?php
class InputText extends InputField
{
	/**
	 * Create an <input type="text" /> field
	 *
	 * @param string $name	Field name
	 * @param string $value Field value
	 * @param bool $sticky If set to true, the last posted value will be used
	 */
	public function __construct($name, $value = null, $sticky = true)
	{
		if($sticky && isset($_POST[$name]))
		{
			$value = $_POST[$name];
		}
		parent::__construct('text', $name, $value);
	}
}